//
//  HuanjingImageCell.m
//  StationManager
//
//  Created by 张佳强 on 18/5/14.
//  Copyright © 2018年 Helong. All rights reserved.
//

#import "HuanjingImageCell.h"
#import <Masonry.h>

@implementation HuanjingImageCell

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = [UIFont systemFontOfSize:14];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titleLabel];
        
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.left.top.right.equalTo(@0);
            make.height.mas_equalTo(40);
        }];
        
        
        _iconImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_iconImageView];
        
        [_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.left.equalTo(@0);
            make.top.equalTo(_titleLabel.mas_bottom).offset(5);
            make.right.bottom.equalTo(@0);
        }];
    }
    
    return self;
    
}

@end
